package com.producer.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Liunh
 */
@Slf4j
@RestController
@RequestMapping(value = "/")
public class StatusController {

    @GetMapping(value = "status")
    public ResponseEntity<String> status() {
        log.info(">>>>>> 应用状态");
        return new ResponseEntity<>("up", HttpStatus.OK);
    }


}
